import request from '@/utils/request'

// 查询APP用户观看广告记录列表
export function listAdvertisement(query) {
  return request({
    url: '/app/advertisement/list',
    method: 'get',
    params: query
  })
}

// 查询APP用户观看广告记录详细
export function getAdvertisement(recordId) {
  return request({
    url: '/app/advertisement/' + recordId,
    method: 'get'
  })
}

// 新增APP用户观看广告记录
export function addAdvertisement(data) {
  return request({
    url: '/app/advertisement',
    method: 'post',
    data: data
  })
}

// 修改APP用户观看广告记录
export function updateAdvertisement(data) {
  return request({
    url: '/app/advertisement',
    method: 'put',
    data: data
  })
}

// 删除APP用户观看广告记录
export function delAdvertisement(recordId) {
  return request({
    url: '/app/advertisement/' + recordId,
    method: 'delete'
  })
}

// 导出APP用户观看广告记录
export function exportAdvertisement(query) {
  return request({
    url: '/app/advertisement/export',
    method: 'get',
    params: query
  })
}